package com.design.factory.AbstractFactory;

public class PizzaSonVeggie extends Pizza {
	PizzaIngredientFactory ingredientFactory;
 
	public PizzaSonVeggie(PizzaIngredientFactory ingredientFactory) {
		this.ingredientFactory = ingredientFactory;
	}
 
	void prepare() {
		System.out.println("Preparing " + name);
		XDough = ingredientFactory.createDough();
		XSauce = ingredientFactory.createSauce();
		XCheese = ingredientFactory.createCheese();
		veggies = ingredientFactory.createVeggies();
	}
}
